package com.rd.student.jiaji.class3.sunguowei.day0802.Flower;

public class Rose extends Flower{
    private String area;

    public Rose(){}

    public Rose(String color, Double price, String area){
        this.color=color;
        this.price=price;
        this.area=area;
    }

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println("产地是" + area);
    }

    public void warn() {
        System.out.println("不要摘玫瑰花，小心扎手！");
    }
}
